#include "gamestart.h"
#include "ui_gamestart.h"
#include "widget.h"
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QPalette>
#include <QBrush>

gamestart::gamestart(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::gamestart)
{
    ui->setupUi(this);

    setAutoFillBackground(true);
    QPalette pal;
    QPixmap pixmap(":/res/img_bg_level_2.jpg");
    pal.setBrush(QPalette::Window, QBrush(pixmap));
    setPalette(pal);
}

gamestart::~gamestart()
{
    delete ui;



}

void gamestart::on_pushButton_clicked()
{
    wgame=new Widget();
    wgame->show();
    connect(wgame,SIGNAL(over()),this,SLOT(overshow()));

    this->close();
}
